<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Admin/Views
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: admin_login.ctp 1446 2010-04-15 09:57:05Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/plugins/admin/views/users/admin_login.ctp $
*/


$session->flash('auth');

// scripts
echo $javascript->link('/admin/js/jquery_plugins/jquery.flash_message.js');
echo $javascript->link('/admin/js/jquery_plugins/jquery.button.js');
echo $javascript->link('/admin/js/users/admin_login.js');

// form_container
echo '<div class="form form_container">';
echo $form->create('User', array('id' => 'login', 'url' => array('action' => 'login')));

// form_caption
echo '<div class="form_caption">' . $caption_for_layout . '</div>';

// form_content
echo '<div class="form_content">';
echo $form->input('username', array('label' => __('username_field', TRUE), 'type' => 'text', 'class' => 'username required', 'div' => 'form_field form_field_text form_field_required'));
echo $form->input('password', array('label' => __('password_field', TRUE), 'type' => 'password', 'class' => 'password required', 'div' => 'form_field form_field_password form_field_required'));
echo '</div>'; // end of form_content

// form_buttons
echo '<div class="form_buttons">';
// form_button_login
echo '<div class="form_button form_button_login">' . $routine->buttonSubmit('key', __('login_action', TRUE)) . '</div>';
echo '</div>'; // end of form_buttons

echo $form->end();
echo '</div>'; // end of form_container


?>